from django import forms


class LoginForm(forms.Form):
    uname = forms.CharField(label='用户名', required=True)
    pwd = forms.CharField(label='密码', widget=forms.PasswordInput)


class RegForm(forms.Form):
    uname = forms.CharField(label='用户名', max_length=20, min_length=8, required=True)
    pwd = forms.CharField(label='密码', min_length=8, widget=forms.PasswordInput)
    repwd = forms.CharField(label='再次输入密码', min_length=8, widget=forms.PasswordInput)
